<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><%@ taglib prefix="s" uri="/struts-tags"%>
<style type="text/css">
body {
	min-width: 960px;
}
</style>
<script type="text/javascript">
	$(function() {
		new MenuBar(".menuLink");
		var mode = $.cookie('screenMode');
		if (!mode) {
			mode = "normal";
		}
		var btn = $("#fullScreen");
		if (mode == "full") {
			fullScreenView.call(btn.get(0));
			btn.toggle(normalScreenView, fullScreenView);
		} else {
			normalScreenView.call(btn.get(0));
			btn.toggle(fullScreenView, normalScreenView);
		}
	});

	var expires = new Date();
	expires.setDate(expires.getDate() + 360);

	function fullScreenView() {
		$.removeCookie('screenMode');
		$.cookie('screenMode', "full", {
			expires : expires,
			path : "/"
		});

		$(this).html("取消全屏");
		$("#topBanner").hide();
		$("#minibar").show();

		$(".navPanel").hide();
		$("#mainPanel").addClass("span60").removeClass("span50");
	}

	function normalScreenView() {
		$.removeCookie('screenMode');
		$.cookie('screenMode', "normal", {
			expires : expires,
			path : "/"
		});
		$(this).html("全屏显示");
		$("#topBanner").show();
		$("#minibar").hide();

		$(".navPanel").show();
		$("#mainPanel").addClass("span50").removeClass("span60");
	}

	function logout() {
		helper.confirm("退出","您确定要退出系统吗?",function(){
			self.parent.location = 'logout.do';
		});
	}
</script>
